﻿using Sharp.WeShare.MP;
using Sharp.WeShare.MP.CustomService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MpTest
{
    public partial class CsTest : System.Web.UI.Page
    {
        string accesstoken = AccessToken.GetValue(WxConfig.APPID,WxConfig.APPSECRET);
        protected void Page_Load(object sender, EventArgs e)
        {
            var res = CustomServiceApi.GetKfList(accesstoken);
        }

        protected void Unnamed1_Click(object sender, EventArgs e)
        {
           var res = CustomServiceApi.SetAccount(accesstoken, "zskk2@vqi2015", "哈哈33",true);
        }

        protected void button2_Click(object sender, EventArgs e)
        {
            var res = CustomServiceApi.InviteWorker(accesstoken, "zskk2@vqi2015", "z18702711053");
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            var res = CustomServiceApi.SendText(accesstoken, "o8mXItyyhht1ubxsO9nidRzfMIOU", "消息内容");
        }
    }
}